<template>
  <div>
    御剑乘风来,除魔天地间!===son3==={{ num }}=={{ n }}
    <button @click="changeA">我是儿子     要改变app的num</button>
    <Sun3></Sun3>
  </div>
</template>
<script>
import Sun3 from './Sun3.vue'
export default {
  components: { Sun3 },
  name: '',
  inject: ['num', 'n', 'hello'],
  data () {
    return {

    }
  },
  created () {

  },
  computed: {
  },
  methods: {
    changeA () {
      this.hello('我是孙子我要给变app的num111')
      this.num='我是孙子我要给变app的num111'
    }
  },

}
</script>
<style lang='less'  scoped>
</style>
